//
//  WishItemViewController.h
//  iFoundIt
//
//  Created by Navid Shariat on 4/05/10.
//  Copyright 2010 QUT. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "WishedItem.h"
#import "WishlistPersistentManager.h"
#import "StorePersistentManager.h"
#import <CoreLocation/CoreLocation.h>
#import "StoreMapViewController.h"

@interface WishItemViewController : UIViewController<MKReverseGeocoderDelegate> {
	
	WishedItem * wishedItem;
	IBOutlet UITextField * radiusTextField;
	IBOutlet UITextField * keywordTextField;	
	IBOutlet UITextView * fromLocationTF;
	IBOutlet UILabel * statusLabel;
	// Buttons
	IBOutlet UIButton * viewBtn;
	IBOutlet UIButton * saveBtn;
	WishlistPersistentManager * wishlistManager;
	StorePersistentManager* stManager;
	
}

@property (nonatomic, retain) WishedItem * wishedItem;
@property (nonatomic, retain) UITextField * radiusTextField;
@property (nonatomic, retain) UITextField * keywordTextField;
@property (nonatomic, retain) UITextView * fromLocationTF;
@property (nonatomic, retain) UIButton * viewBtn;
@property (nonatomic, retain) UIButton * saveBtn;
@property (nonatomic, retain) UILabel * statusLabel;
@property (nonatomic, retain) WishlistPersistentManager * wishlistManager;
@property (nonatomic, retain) StorePersistentManager* stManager;

#pragma mark methods
- (NSString *) getCurrentLocAddress;
- (void) navigateToMapView: (NSMutableArray *)  stores: (CLLocationCoordinate2D) coordinate;
- (void)calcFromLocation: (CLLocationCoordinate2D) coordinate ;

#pragma mark action
- (IBAction) backgroundPressed;
- (IBAction) pickCurrentLocationAction;
- (IBAction) saveButtonPressesd;
- (IBAction) viewFoundItem;
- (IBAction)textFieldDoneEditing:(id)sender;


@end


